<template>
  <div class="dashboard-container">
    <h2 style="text-align: center">{{ infoTitle }}</h2>
    <el-steps
      :active="active"
      finish-status="success"
      align-center
      process-status="wait"
      style="margin-bottom: 40px"
    >
      <el-step title="填写课程基本信息"></el-step>
      <el-step title="创建课程大纲"></el-step>
      <el-step title="提交审核"></el-step>
    </el-steps>

    <!-- 多条件搜索 -->
    <el-form :inline="true" :model="teacher" class="demo-form-inline">
      <el-form-item>
        <el-input v-model="teacher.name" placeholder="讲师名称"></el-input>
      </el-form-item>
      
      <el-form-item>
        <el-button type="primary" >查询</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" >查询</el-button>
            </el-form-item>
    <el-form label-width="120px">
      <el-form-item>
        <el-button @click="previous">返回修改</el-button>
        <el-button  type="primary" @click="next"
          >保存并下一步</el-button
        >
      </el-form-item>
    </el-form>
  </div>
</template>


<script>
export default {
  components: {},
  data() {
    return {
      infoTitle: "发布新课程",
      active: 2,
    };
  },
  created() {},
  methods: {
    next() {
      this.$router.push({ path: "/course/publish/1" });
    },
    //上一步返回 章节与小节页面
    previous() {
      // this.$router.push({ path: "/course/addChapter/"+ res.data.courseId });
      this.$router.push({
        path: "/course/addCourseInfo/" + this.$route.params.id,
      });
    },
  },
};
</script>

<style >
</style>